package com.xydtech.ecard.imp.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xydtech.common.annotation.Excel;
import com.xydtech.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 电子名片个人/商户/企业/新型农业主体导入任务移交记录对象 ecard_merchant_import_handover
 *
 * @author xydtech
 * @date 2024-11-28
 */
public class EcardMerchantImportHandover extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 个人/商户/企业/新型农业主体ID
     */
    @Excel(name = "个人/商户/企业/新型农业主体ID")
    private Long importId;

    /**
     * 移交人注册ID
     */
    @Excel(name = "移交人注册ID")
    private Long transferId;

    /**
     * 接收人注册ID
     */
    @Excel(name = "接收人注册ID")
    private Long recipientId;

    /**
     * 移交人机构id
     */
    @Excel(name = "移交人机构id")
    private Long transferDeptId;

    /**
     * 接收人机构id
     */
    @Excel(name = "接收人机构id")
    private Long recipientDeptId;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creationTime;

    /**
     * 商户类型：1-个人，2-商户，3-企业，4-新型农业主体
     */
    @Excel(name = "商户类型：1-个人，2-商户，3-企业，4-新型农业主体")
    private String merchantType;

    /**
     * 任务编号
     */
    private Long taskId;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setImportId(Long importId) {
        this.importId = importId;
    }

    public Long getImportId() {
        return importId;
    }

    public void setTransferId(Long transferId) {
        this.transferId = transferId;
    }

    public Long getTransferId() {
        return transferId;
    }

    public void setRecipientId(Long recipientId) {
        this.recipientId = recipientId;
    }

    public Long getRecipientId() {
        return recipientId;
    }

    public void setTransferDeptId(Long transferDeptId) {
        this.transferDeptId = transferDeptId;
    }

    public Long getTransferDeptId() {
        return transferDeptId;
    }

    public void setRecipientDeptId(Long recipientDeptId) {
        this.recipientDeptId = recipientDeptId;
    }

    public Long getRecipientDeptId() {
        return recipientDeptId;
    }

    public void setCreationTime(Date creationTime) {
        this.creationTime = creationTime;
    }

    public Date getCreationTime() {
        return creationTime;
    }

    public void setMerchantType(String merchantType) {
        this.merchantType = merchantType;
    }

    public String getMerchantType() {
        return merchantType;
    }

    public Long getTaskId() {
        return taskId;
    }

    public void setTaskId(Long taskId) {
        this.taskId = taskId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("importId", getImportId())
                .append("remark", getRemark())
                .append("transferId", getTransferId())
                .append("recipientId", getRecipientId())
                .append("transferDeptId", getTransferDeptId())
                .append("recipientDeptId", getRecipientDeptId())
                .append("creationTime", getCreationTime())
                .append("merchantType", getMerchantType())
                .toString();
    }
}
